package com.neuedu.boot;

import com.neuedu.boot.config.AppConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;

/**
 * Hello world!
 *
 */

//exclude = DataSourceAutoConfiguration.class 排除自动配置类，
@SpringBootApplication(scanBasePackages={"com.neuedu.boot","org.jshand"},exclude = DataSourceAutoConfiguration.class)
public class App03  extends SpringBootServletInitializer
{
    public static void main( String[] args )
    {
        SpringApplication.run(App03.class,args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(App03.class);
    }
}
